<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin">技师管理</h4>
</div>
<div class="wrapper-md ng-scope" ng-controller="shopTechnicianCtrl">
    <div class="panel panel-default">
        <div class="row wrapper">
            <div class="col-sm-9">
                <form class="form-inline ng-pristine ng-valid">
                    <div class="form-group">
                        <label class="control-label h6">姓名</label>
                        <input type="text" class="input-sm form-control" ng-model="shopTechnicianVO.name">
                    </div>
                    <button class="btn btn-sm btn-default" ng-click="findPageAll()">查询</button>
                </form>
            </div>
            <div class="col-sm-3 pull-right m-b-sm">
                <div class="pull-right">
                    <button class="btn btn-sm btn-info" ui-sref="app.shopTechnicianAdd">新增技师</button>
                </div>
            </div>
        </div>
        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
                <thead>
                    <tr>
                        <th>个人信息</th>
                        <th>职位</th>
                        <th>上班日期</th>
                        <th>上班时间</th>
                        <th>休息时间</th>
                        <th>每段时间可预约客户人数</th>
                        <th>说明</th>
                        <th width="200" class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in list">
                        <td width="20%">
                            <div class="inline">
                                <img src="img/default.png" ng-src="{{app.image.goods}}{{item.picture}}" err-src="img/error.png" style="height: 60px;width: 60px;" class="pull-left m-r-sm">
                                <div class="pull-left">
                                    <p class="block h5 font-bold m-b-xs w-sm text-ellipsis">{{item.name}}</p>
                                    <p class="block h6 m-b-xs">编号：{{item.num}} 号</p>
                                    <p class="block h6 m-b-xs" ng-if="item.gender==0">性别:女</p>
                                    <p class="block h6 m-b-xs" ng-if="item.gender==1">性别:男</p>
                                    <p class="h6 m-b-xs">联系方式:{{item.mobilePhone}}</p>
                                </div>
                            </div>
                        </td>
                        <td>
                            {{item.position}}
                        </td>
                        <td>
                           {{item.canReserve}}
                        </td>
                        <td>
                            {{item.workTime}}
                        </td>
                        <td>
                            {{item.restTime}}
                        </td>
                        <td>
                            {{item.number}}
                        </td>
                        <td>
                            {{item.explain}}
                        </td>
                        <td>
                            <button class="btn btn-success m-b-xs" ng-click="check(item.id)">查看</button>
                            <button class="btn btn-info m-b-xs" ui-sref="app.shopTechnicianEdit({id:item.id})">修改</button>
                            <button class="btn btn-danger m-b-xs" ng-click="del(item.id)">删除</button>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div ng-if="list.length<=0 && !app.loading" class="padder-v text-center">
                <span class="h6">~未搜索到任何数据~</span>
            </div>
            <div>
                <circle-loading ng-if="app.loading"></circle-loading>
            </div>
        </div>
        <footer class="panel-footer">
            <div class="row">
                <div class="col-sm-offset-4 col-sm-4 text-center">
                    <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
                </div>
                <div class="col-sm-4 text-right text-center-xs">
                    <pagination boundary-links="true" total-items="totalItems" ng-model="currentPage"
                                ng-change="pageChanged()" max-size="{{maxPageRow}}" class="pagination-sm m-t-none m-b"
                                previous-text="上一页" next-text="下一页"
                                first-text="首页" last-text="尾页"></pagination>
                </div>
            </div>
        </footer>
    </div>
</div>